[IA64] Skip MCA setup on domU
authorAlex Williamson <alex.williamson@hp.com>
Wed, 11 Apr 2007 13:28:29 +0000 (07:28 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Wed, 11 Apr 2007 13:28:29 +0000 (07:28 -0600)
This effectively automates passing the nomca flag to domUs,
preventing them from setting up CMC/CPE interrupts.  This saves
3 dynamic IRQs per processor and allows us to get domUs up to 64
vCPUs without increasing the number of dynamic IRQs available.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
linux-2.6-xen-sparse/arch/ia64/kernel/setup.c

index e33b4aeac9a0856994452f61116d9afd8c9fd2e8..fcbe83fe5a5702e21e47b54ec1aad53298ebcb7c 100644 (file)
@@ -594,6 +594,10 @@ setup_arch (char **cmdline_p)
 
 
        /* enable IA-64 Machine Check Abort Handling unless disabled */
+#ifdef CONFIG_XEN
+       if (is_running_on_xen() && !is_initial_xendomain())
+               nomca = 1;
+#endif
        if (!nomca)
                ia64_mca_init();